package br.com.sovi.gwt.client.entity;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.List;

import com.google.gwt.user.client.rpc.IsSerializable;

public class Historico implements IsSerializable {
	private Long id;

	private String descricao;

	private Date data;

	private boolean trafego;
	
	private boolean rastro;
	
	private int zoom;

	private List<HistoricoPoint> points = new ArrayList<HistoricoPoint>();
	
	public Historico() {
	}
	
	public Historico(String descricao, Date data, boolean trafego, boolean rastro, int zoom,
			HistoricoPoint ... points) {
		super();
		this.descricao = descricao;
		this.data = data;
		this.trafego = trafego;
		this.rastro = rastro;
		this.zoom = zoom;
		this.points = new ArrayList<HistoricoPoint>(Arrays.asList(points));
	}
	
	public Historico(String descricao, Date data, boolean trafego, boolean rastro, int zoom,
			List<HistoricoPoint> points) {
		super();
		this.descricao = descricao;
		this.data = data;
		this.trafego = trafego;
		this.rastro = rastro;
		this.zoom = zoom;
		this.points = points;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getDescricao() {
		return descricao;
	}

	public void setDescricao(String descricao) {
		this.descricao = descricao;
	}

	public Date getData() {
		return data;
	}

	public void setData(Date data) {
		this.data = data;
	}

	public boolean isTrafego() {
		return trafego;
	}

	public void setTrafego(boolean trafego) {
		this.trafego = trafego;
	}

	public boolean isRastro() {
		return rastro;
	}

	public void setRastro(boolean rastro) {
		this.rastro = rastro;
	}

	public int getZoom() {
		return zoom;
	}

	public void setZoom(int zoom) {
		this.zoom = zoom;
	}

	public List<HistoricoPoint> getPontos() {
		return points;
	}

	public void setPoints(List<HistoricoPoint> points) {
		this.points = points;
	}

}
